//
//  UIViewController+UIStoryboard.m
//  meiyaya
//
//  Created by 张领瑞 on 2017/8/31.
//  Copyright © 2017年 ShiFeiEr. All rights reserved.
//

#import "UIViewController+UIStoryboard.h"

@implementation UIViewController (UIStoryboard)


-(UIViewController*)viewControllerInMStoryboardWithName:(NSString*)name WithIdentifier:(NSString*)str{
    
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:name bundle:[NSBundle mainBundle]];
    UIViewController *regVC = [storyboard instantiateViewControllerWithIdentifier:str];
    return regVC;
}
@end
